package com.zhuiyun.project.api.record.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhuiyun.project.api.collectVideo.entity.CollectVideo;
import com.zhuiyun.project.api.record.entity.Record;
import com.zhuiyun.project.api.topicmanage.entity.Topic;
import org.apache.ibatis.annotations.Param;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * @ClassName CollectVideoMapper
 * @Description TODO
 * @Author XC8
 * @Date 2024/2/26 14:22
 **/
@Mapper
public interface RecordMapper extends BaseMapper<Record> {
    /**
     * @Author XC8
     * @Description 根据用户id查询观看记录
     * @Date 2024/2/26 14:22
     * @Return
     * @param userId
     */
    List<Record> getRecordById(@Param("userId") Integer userId,@Param("teDay") String teDay);
    /**
    * @Author XC8
    * @Description 观看记录删除
    * @Date 2024/2/26 15:31
    * @Return int

    */
    int recordDelete(@Param("rId") Integer rId);

    /**
    * @Author XC8
    * @Description 生成观看记录
    * @Date 2024/3/8 9:15
    * @Return int
    */
    int addRecord(Record record);
}
